task1:task1.c sys.h
	arm-elf-gcc -g -c -o task1.o task1.c
	arm-elf-gcc -g -c -o vsprintf.o vsprintf.c
	arm-elf-gcc -g -c -o signal.o signal.c
	arm-elf-as  restorer.s -o restorer.o
	arm-elf-ld -Ttext 0x0000000 -g restorer.o task1.o vsprintf.o -o task1_tmp.o signal.o\
	 -L/E/GNUARM/lib/gcc/arm-elf/4.1.1/ -lgcc
	arm-elf-objcopy -O binary -S task1_tmp.o task1
	arm-elf-objdump -D -b binary -m arm  task1 >ttt.s
	rm -f   *.o
clean:
	rm -f   task1